package com.example.netcomponent.net.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by zengxianghui900 on 17/10/4.
 * 吐司工具类
 */

public class ToastUtils {

    /**
     * 弹短土司
     * @param context
     * @param msg
     */
    public static void showShortToast(Context context, String msg){
        Toast.makeText(context,msg,Toast.LENGTH_SHORT).show();
    }
    /**
     * 弹长土司
     * @param context
     * @param msg
     */
    public static void showLongToast(Context context,String msg){
        Toast.makeText(context,msg,Toast.LENGTH_LONG).show();
    }

}
